package com.example.demo.Dao;

import com.example.demo.Entity.Product;
import com.example.demo.Util.PageQueryUtil;

import java.util.List;

public interface ProductMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);

    List<Product> selectByPrimaryKeys(List<Long> productsIds);

    List<Product> findProductsListBySearch(PageQueryUtil pageUtil);

    int getTotalProductsBySearch(PageQueryUtil pageUtil);

    List<Product> selectAll();

    Product selectByProductName(String productname);
}